import json
import warnings

from lxml import etree

from odoo.tools import pycompat
from ..exceptions import except_orm
from ..models import (
    MetaModel,
    BaseModel,
    Model, TransientModel, AbstractModel,

    MAGIC_COLUMNS,
    LOG_ACCESS_COLUMNS,
)
from odoo.tools.safe_eval import safe_eval

browse_record_list = BaseModel

class BRM(type):
    def __instancecheck__(self, inst):
        pass

browse_record = BRM('browse_record', (object,), {})

class NBM(type):
    def __instancecheck__(self, inst):
        pass

browse_null = NBM('browse_null', (object,), {})

def transfer_field_to_modifiers(field, modifiers):
    pass

def transfer_node_to_modifiers(node, modifiers, context=None, in_tree_view=False):
    pass

def simplify_modifiers(modifiers):
    pass

def transfer_modifiers_to_node(modifiers, node):
    pass

def setup_modifiers(node, field=None, context=None, in_tree_view=False):
    pass

def test_modifiers(what, expected):
    pass

def modifiers_tests():
    pass
